package cn.aitrox.ry.service.auth.dao;

import cn.aitrox.ry.common.dao.BaseDao;
import cn.aitrox.ry.service.auth.entity.AuthGroupUserEntity;

import java.util.List;

public interface AuthGroupUserDao extends BaseDao<AuthGroupUserEntity> {

    void deleteByGroupId(Integer groupId);

    void batchInsert(List<AuthGroupUserEntity> list);

    void deleteByGroupIdUserIds(Integer groupId, List<Integer> userIds);

    List<AuthGroupUserEntity> findByUserIds(List<Integer> userIds);

    List<AuthGroupUserEntity> findByGroupIds(List<Integer> groupIds);
}
